//
// Created by de on 3/28/21.
//

#include "TStateController.h"
#include "iostream"
#include "future"
#include "gtest/gtest.h"
#include "SqlController.h"
#include "SqlController/dao/MySqlDaoImpl.h"
#include "SqlSqliteDao.h"
TEST(NAME, A){
    TStateController tStateController;

    //Block
    tStateController.initDevice();
    tStateController.runningThreading();

    //Block
//    tStateController.runLoop();
//    spdlog::info("test");

//    while(true)
//    {
//        spdlog::info("test stop");

//        std::this_thread::sleep_for(std::chrono::seconds(3));
//        tStateController.resetDevice();
//        std::this_thread::sleep_for(std::chrono::seconds(3));

    std::this_thread::sleep_for(std::chrono::seconds(10));

    tStateController.stopDevice();
//    }
}



int main(int argc, char* argv[])
{
    ::testing::InitGoogleTest(&argc, argv);
    return RUN_ALL_TESTS();
}
